"""
__author__ = '霍格沃兹测试开发学社'
__desc__ = '更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860'
"""
from appium.webdriver.common.appiumby import AppiumBy

from base.base_page import BasePage


class MainPage(BasePage):

    def find_good(self, text):
        # 点击商品
        self.swipe_find(text, 10).click()
        from page.litemall_pages.product_page import ProductPage
        return ProductPage(self.driver)

    def get_tips(self):
        """获取提示信息"""
        return self.get_toast()
